<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>添加快递单号</title>
    <link th:href="@{/css/bootstrap.css}" rel="stylesheet">
    <script th:src="@{/js/bootstrap.js}" rel="stylesheet"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 20px;
        }

        .container {
            margin-top: 20px;
        }

        .page-header h1 {
            margin-top: 20px;
        }

        form {
            margin-top: 20px;
        }

        label {
            font-weight: bold;
            margin-top: 10px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        input[type='submit'] {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
        }

        input[type='submit']:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4">
            <a class="btn btn-primary" th:href="@{/allOrdersIng}">返回</a>
        </div>
    </div>
    <form method="post" th:action="@{/insertShippingInfo}" class="col-md-6">
        <div class="col-md-4">
            <label>订单编号:</label>
            <div class="form-group">
                <input type="text" id="order_id" name="order_id" class="form-control" th:value="${order.order_id}"
                       required="required" readonly="readonly">
            </div>
            <label>快递单号:</label>
            <div class="form-group">
                <input type="text" id="tracking_number" name="tracking_number" class="form-control" required="required">
            </div>
            <div class="form-group">
                <input type="submit" value="确认发货" class="form-control">
            </div>
        </div>
    </form>
</div>
</body>
</html>
